import request from '@/relyon/request'

// 获取书架小说
export function getFictionShelfList(params){
    return request({
        url : '/fictionShelf/list',
        method : 'get',
        params
    })
}

// 检查书架中的小说是否更新
export function FictionCheckNew(){
    return request({
        url : '/fictionShelf/checkNew',
        method : 'post',
    })
}

// 添加、修改到书架
export function getFictionShelfAdd(data){
    return request({
        url : '/fictionShelf/addOrupdate',
        method : 'post',
        data
    })
}


// 移除
export function getFictionShelfDel(data){
    return request({
        url : '/fictionShelf/del',
        method : 'delete',
        data
    })
}

// 移除
export function getFictionShelfDels(data){
    return request({
        url : '/fictionShelf/dels/' + data.ids,
        method : 'delete',
        data
    })
}

export default {
    getFictionShelfList,
    getFictionShelfAdd,
    getFictionShelfDel,
    getFictionShelfDels,
    FictionCheckNew
}